package cn.linkpower.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Controller
public class Test {

	/**
	 * 测试页面跳转，携带自定义的cid信息
	 * @param cid
	 * @param model
	 * @return
	 */
	@GetMapping("/socket/{cid}")
	public String socket(@PathVariable String cid,Model model){
		model.addAttribute("cid", cid);
		return "socket";
	}
}